package org.wms.minbearwcs.dao.mission.impl;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;
import org.wms.minbearwcs.dao.mission.inf.WcsMissionHistoryDao;
import org.wms.minbearwcs.entity.Mapper.mission.WcsMissionHistoryMapper;
import org.wms.minbearwcs.entity.PO.wcs.mission.history.WcsMissionHistory;

@Repository
@RequiredArgsConstructor
public class WcsMissionHistoryDaoImpl implements WcsMissionHistoryDao {

    private final WcsMissionHistoryMapper mapper;

    @Override
    public boolean insert(WcsMissionHistory history) {
        return mapper.insert(history) == 1;
    }
}
